//
//  CustomOrderDetailTopableViewCell.m
//  ChunLaiZhuangClient
//
//  Created by zouzhisheng on 16/3/4.
//  Copyright © 2016年 CLZ. All rights reserved.
//

#import "CustomOrderDetailTopableViewCell.h"

@implementation CustomOrderDetailTopableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (IBAction)copyAction:(id)sender {
    UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
    pasteboard.string =[NSString stringWithFormat:@"%@",_orderModel.order_id];
    [[LKDHud shareHud] showtip:@"复制成功"];
}

-(void)loadDataModel:(OrderDetailDataModel*)orderModel{
    _orderModel=orderModel;
    self.orderNumLabel.text=[NSString stringWithFormat:@"订单号: %@",orderModel.order_id];
    self.nameLabel.text=orderModel.shipping_address.firstname;
    self.adressLabel.text=orderModel.shipping_address.address;
    self.phoneLabel.text=orderModel.shipping_address.telephone;
    
}
@end
